package mars.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.EditText;
import android.widget.TextView;

public class newCircleActivity extends Activity{
private Button quxiao,enter;
private EditText newccn;
private TextView content2;
private CheckBox newchuang;
private boolean neworjoin=false;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.chuangcircle);
		quxiao=(Button)findViewById(R.id.quxiao);
		enter=(Button)findViewById(R.id.enter);
		enter=(Button)findViewById(R.id.enter);
		newccn=(EditText)findViewById(R.id.newccn);
		content2=(TextView)findViewById(R.id.content2);
		newchuang=(CheckBox)findViewById(R.id.newchuang);
		newccn.setFocusable(false);
		
		content2.setText(R.string.joinornew1+""+R.string.joinornew2);
		
		 newchuang.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
	        	public void onCheckedChanged(CompoundButton buttonView,boolean isChecked) {
					// TODO Auto-generated method stub
					if(isChecked){
					neworjoin=true;
					newccn.setFocusable(true);
					}
				}			
				});
		 quxiao.setOnClickListener(new Button.OnClickListener(){
				public void onClick(View v) {
					// TODO Auto-generated method stub
					System.exit(0);
				}        	
	        });
		 enter.setOnClickListener(new Button.OnClickListener(){
				public void onClick(View v) {
					// TODO Auto-generated method stub
				}        	
	        });
	}

}
